package com.qfedu.fy.service.intf;

import com.qfedu.fy.entity.Department;
import com.qfedu.fy.entity.User;
import com.qfedu.fy.vo.PageBeanVo;
import com.qfedu.fy.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * ......................我佛慈悲......................
 * rrr
 * o8888888o
 * 88" . "88
 * (| -_- |)
 * 0\  =  /0
 * ___/`---'\___
 * .' \\|     |// '.
 * / \\|||  :  |||// \
 * / _||||| -卍-|||||- \
 * |   | \\\  -  /// |   |
 * | \_|  ''\---/''  |_/ |
 * \  .-\__  '-'  ___/-. /
 * ___'. .'  /--.--\  `. .'___
 * ."" '<  `.___\_<|>_/___.' >' "".
 * | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 * \  \ `_.   \_ __\ /__ _/   .-` /  /
 * =====`-.____`.___ \_____/___.-`___.-'=====
 * `=---='
 * ..............佛祖保佑无BUG..................
 *
 * @author mxj
 * @date 2022/6/16 19:55
 */
public interface DepartmentService {
    R add(Department department);

    PageBeanVo selectAll(int page,int limit);

    R update(Department department);

    R del(int id);
    /**
     * 查询全部*/
    R all();
    /**
     * 实现文件下载 Excel*/
    void createExcel(HttpServletResponse response) throws IOException;
    /**
     * 实现Excel数据导入 1.上传 2.解析 3.新增*/
    R uploadExcel(MultipartFile file) throws IOException;

    /**
     * 实现部门人数统计*/
    R selectNums();
}
